package org.wsalger.dao;

import java.util.Date;
import java.util.List;
import java.util.HashMap;

import org.wsalger.model.ZMWeekreport;

public interface ZMWeekreportMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ZMWeekreport record);

    int insertSelective(ZMWeekreport record);

    ZMWeekreport selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ZMWeekreport record);

    int updateByPrimaryKey(ZMWeekreport record);
    
//  create by wsalger
    
    //获取所有周报列表
    List<HashMap> g_getAllWeekly();
    //获取所有周报列表按时间
    List<HashMap> g_getWeeklyByDate(Date d);
    //获取所有周报列表按人员
    List<HashMap> g_getWeeklyByUser(Long l);
    //获取周报列表按人员按时间
    List<HashMap> g_getWeeklyByUserDate(Long l,Date d);
    //获取未审核的周报列表
    List<HashMap> g_getWeeklyNotVerify(Boolean b);
    //根据ID获取周报
    ZMWeekreport g_getWeeklyFull(Long l);
    //添加周报
    int g_addNewWeekly(ZMWeekreport z);
    //修改周报
    int g_editWeekly(ZMWeekreport z);
    //删除周报
    int g_delWeekly(Long l);
    //审核周报
    int g_verWeekly(Long l);
}